package com.woniu.supermarket.service;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.Goods;
import com.woniu.supermarket.vo.GoodsVo;

public interface IGoodsService {
    int addGoods(Goods goods);
    int modifyGoods(Goods goods);
    int removeGoods(int id);
    int removeBatchGoods(int[] ids);
    PageInfo<GoodsVo> findGoodsByCons(Integer now, Integer size, String name, Integer typeId);

    int findGidByCode(String code);

    int addGoodsVo(GoodsVo goodsvo);

    int editGoodsVo(GoodsVo goodsvo);

}
